package com.ytxg.health_management.article.service;

import com.ytxg.health_management.pojo.dto.PageArticle;
import com.ytxg.health_management.article.pojo.ArticleMain;
import com.ytxg.health_management.pojo.dto.UserDto;
import com.ytxg.health_management.pojo.entity.Page;
import com.ytxg.health_management.pojo.entity.Result;
import com.ytxg.health_management.pojo.entity.Subscribe;
import com.ytxg.health_management.pojo.vo.ArticleVo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface ArticleService {

    Result<String> addArticle(ArticleVo article,UserDto userDto);
    Result<String> updateArticle(ArticleVo article);

    Result<Map<String,Object>> getListByCreateName(String createBy, Page page);

    Result<String> deleteById(List<Integer> id);
    Result<PageArticle> getPages(ArticleMain articleMain,Page page);
    Result<ArticleMain> getArticleById(int id);
    Result<String> addSubscribe(Subscribe subscribe);
    Result<List<Subscribe>> getSubscribeArticle(int id);
    Result<String> deleteSubscribe(int id,int articleId);
    Result<List<ArticleMain>> searchCommon(ArticleMain articleMain);
    Result<String> articleBan(int id,String status);
    Result<HashMap<String, Object>> getArticleAll(ArticleMain articleMain);
    Result<String> toTop(ArticleMain articleMain);
}
